/*
 * @authors :Bin Mei
 * @date    :2017-08-10
 * @description：票交汇APP-h5 -> 公告
 */
import Auth from 'src/utils/requireAuth';

module.exports = {
	path: 'notice',
	childRoutes: [
		{
		  path: 'detail',
		  getComponent(location, cb) {
				require.ensure([], (require) => {
				  cb(null, require('./Detail'));
				});
		  },
		  onEnter: (nextState, replace) => Auth(nextState, replace,{ title: '平台公告',class:'fff'})
		},
		
	],
	indexRoute: {
		getComponent(location, cb) {
			require.ensure([], (require) => {
				cb(null, require('./Index'));
			});
		},
    onEnter: (nextState, replace) => Auth(nextState, replace,{ title: '平台公告'}) //,requireAuth:true

	}
}